Repository navigation
ci(measure): a probe input runs named examples at the head over the corpus directory - #487
Merged
Merged
Conversation
DrunkOnJava
marked this pull request as ready for review
November 30, 2026 06:33
… and probe names are never expanded as file patterns
… not fatal to the step
DrunkOnJava
added a commit
that referenced
this pull request
Nov 30, 2026
…here its field list ends (#486) (#488) ## Summary #484 found records of six derived classes in drawings their derivations never read, and could say only that those records decode. This records what each class's own probe found, run over the whole pinned corpus through Measure's new `probe` input (#487): | Class | Records | Close where the field list ends | |---|---:|---:| | MATERIAL | 244 | 244 | | ACSH_HISTORY_CLASS | 21 | 21 | | ACSH_BOX_CLASS | 8 | 8 | | ACSH_EXTRUSION_CLASS | 10 | 10 | | ACAD_EVALUATION_GRAPH | 28 | 28 | | ACDBASSOCPERSSUBENTMANAGER, ACDBPERSSUBENTMANAGER | 8, 8 | 8, 8 | "Close" is a real end check on every release, R14 included: objects go through `objects::modern`'s `finish` against the size the record states (on R13 and R14 the `RL` in the common object data), and entities through `checked_inline`. Two comments that said R13 and R14 carry no boundary are corrected here. The check is known to fire on R14: an earlier PDFUNDERLAY decoder read an inline handle and overshot R14's stated boundary by 8 bits, which is how the 2026-10-26 CLEANROOM entry caught it. None of the newer drawings (kurema/BookViewerApp3, the OSHW Jetson boards, planar-algorithm) has a DXF export pinned, so no new value is compared. The values compared, all with 0 differences, are the derivations' own (MATERIAL's 13,058, for example). Closes #486. ## Testing - Measure [run 46366731085](https://github.com/DrunkOnJava/dwg-rs/actions/runs/46366731085): `probe_assoc_pers_subent` and `probe_pers_subent`. - Measure [run 46367164028](https://github.com/DrunkOnJava/dwg-rs/actions/runs/46367164028): `probe_material`, `probe_sh_history` (which covers ACSH_BOX_CLASS too), `probe_sh_extrusion` and `probe_eval_graph`. - `spec_citations.py` passes. Docs only.
DrunkOnJava
added a commit
that referenced
this pull request
Nov 30, 2026
…oCAD's own output on every corpus record (#478) (#490) ## Summary Both classes of #478 are now checked by the 2026-10-26 method on every corpus record, and recorded in CLEANROOM.md. MESH's field list came in with `530192d7` and credited a section ODA spec v5.4.1 does not have; WIPEOUT is read with IMAGE's field list, which it had been measured to share on one R2018 record only. - **`examples/probe_mesh.rs` walks the corpus.** Like the other object probes, it uses the shared twin reader (`examples/support/twin.rs`), so it pairs each MESH with its DXF twin by handle and tallies per release. It took one drawing and one DXF before. The comparison is the same, now also checking each group's code: the `AcDbSubDMesh` group in the DXF's own order. - **Result** ([Measure run 46372916305](https://github.com/DrunkOnJava/dwg-rs/actions/runs/46372916305), through #487's `probe` input): - all 14 records close on their data-stream boundary; - on R2000 to R2018, the 10,992 values compared equal the twin, with 0 differences; - the two R14 records have no DXF twin, so they are held to their boundary alone. - CLEANROOM.md gains a dated entry for MESH, and `docs/spec-coverage.md`'s MESH row moves from `partial` ("2 records error") to `closes`. - **WIPEOUT: the new `examples/probe_wipeout.rs`** compares every raster-image field the DXF writes: the insertion point, U and V vectors, image size, display flags, clipping, brightness, contrast, fade, clip mode, and the clip boundary's type, count and vertices. - **Result** ([Measure run 46372916305](https://github.com/DrunkOnJava/dwg-rs/actions/runs/46372916305)): - all 7 records close; - on R2000 to R2018, 171 values equal the twin, with 0 differences; - the DXF writes a clip polygon's first vertex again after its last, and that vertex equals the first on every record; - the clip mode is written only from R2010 (3 values not written). - **Docs:** CLEANROOM.md gains a dated WIPEOUT entry, the coverage row moves from `decoder` to `closes`, and `wipeout.rs`'s "Only R2018 has been measured" now says every release is. Closes #478. ## Testing - The Measure run above. `spec_coverage.py --check` and `spec_citations.py` pass, and rustfmt is clean on the probe. ## Source provenance Measured against AutoCAD's own DXF output of the pinned public corpus (CLEANROOM.md source rules); no third-party DWG or DXF implementation was consulted.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
dwg-rs's Measure runs three fixed examples (the coverage report, the class census and the reference closure), so a probe of one derived field list had no way to run on the pinned corpus in CI. This adds two optional inputs, as rvt-rs's Measure has:
probe: example names, space-separated. Each is built at the head and run once over the corpus directory, writingmeasure/probe-<name>.txt, which uploads with the rest ofmeasure/. The run summary gives each probe's exit status and line count.probe_features: the cargo features those examples need (dxf-readerfor the DXF twins).The inputs reach the shell only through environment variables, and are held to example-name and feature-name characters before use. A probe that does not build fails the step; a probe's own exit status is reported, not fatal.
What it unblocks: #480's last point (the two persistent-subentity managers' newer records in
3d.dwg, against their derived lists) and #486.Testing
yaml.safe_loadparses the workflow, which lists the four inputs.probe="probe_assoc_pers_subent probe_pers_subent": run 46366731085. Both probes built and ran, andmeasure/probe-probe_assoc_pers_subent.txtandmeasure/probe-probe_pers_subent.txtuploaded with the run's other results. They show every corpus record of both classes closing (Eight decoder modules nothing calls, two of them reading other field lists than the live decoder #480).probe_features: run 46367874075 builtprobe_entity_colourwithdxf-readerand compared 2,579 entities with their DXF twins.bash -e, so the status is caught explicitly (run 46368369704 ranprobe_meshon a directory it could not read and passed).probeandprobe_featuresto the concurrency group, so two probe runs of the same refs no longer cancel each other, and turns off pattern expansion in the probe loop.